package com.code.day02;

import java.util.Scanner;

public class Demo02if {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int Score = sc.nextInt();
        int Score1 = sc.nextInt();
        int Score2 = sc.nextInt();
        if (Score <= 100 && Score > 90) {
            System.out.println("成绩优秀");
        } else if (Score <= 90 && Score > 80) {
            System.out.println("成绩良好");
        } else if (Score <= 80 && Score > 70) {
            System.out.println("成绩一般");
        } else if (Score <= 70 && Score >= 60) {
            System.out.println("成绩及格");
        } else {
            System.out.println("成绩不及格");
        }

        if (Score >= Score1 && Score >= Score2) {
            System.out.println(Score);
        } else if (Score1 >= Score && Score1 >= Score2) {
            System.out.println(Score1);
        } else {
            System.out.println(Score2);
        }


    }
}
